package com.arrcen.medicen.core.match.model.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 返回结果
 */

@ApiModel("返回结果")
@AllArgsConstructor
@NoArgsConstructor
public class Result  implements Serializable {

    @JsonProperty("status")
    @ApiModelProperty(value = "成功状态",example = "1")
    public Integer status;

    @JsonProperty("data")
    @ApiModelProperty(value = "返回数据")
    public Boolean data;

    public Integer getStatus() {
        return status;
    }


    public Boolean getData() {
        return data;
    }

    public void setData(Boolean data) {
        this.data = data;
    }



    public void setStatus(boolean _update) {
        this.status=_update?1:0;
    }
    public void setStatus(int _update) {
        this.status=_update;
    }
}
